from django.db import models
from apps.common.base.models import BaseModel

# Create your models here.
class File(BaseModel):
    '''文件模型'''
    status = (
        (0, "关闭"),
        (1, "正常"),
    )
    fileType = (
        ('image', "图片"),
        ('video', "视频"),
        ('slx', "excel表格"),
    )
    baseImgUrl=models.CharField("访问路径", max_length=200, blank=True, default='')
    fileName=models.CharField("文件名称", max_length=500, blank=True, default='')
    file_md5=models.CharField("文件MD5", max_length=200, blank=True, default='')
    fileType=models.CharField("文件类型", max_length=30, blank=True, default='image', choices=fileType)
    fileSize=models.IntegerField("文件大小",default=0)
    class Meta:
        verbose_name = '文件模型'
        verbose_name_plural = verbose_name